package com.hongye.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hongye.common.utils.PageUtils;
import com.hongye.common.utils.Query;

import com.hongye.house.dao.NewsImgDao;
import com.hongye.house.entity.NewsImgEntity;
import com.hongye.house.service.NewsImgService;


@Service("newsImgService")
public class NewsImgServiceImpl extends ServiceImpl<NewsImgDao, NewsImgEntity> implements NewsImgService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<NewsImgEntity> page = this.page(
                new Query<NewsImgEntity>().getPage(params),
                new QueryWrapper<NewsImgEntity>()
        );

        return new PageUtils(page);
    }

}